package DB.Dao.WorkInRepair;

/**
 * WorkerInRepairId entity. @author MyEclipse Persistence Tools
 */

public class WorkerInRepairId implements java.io.Serializable {

	// Fields

	private Integer repairWorkId;
	private Integer workerId;
	private String isResponsible;

	// Constructors

	/** default constructor */
	public WorkerInRepairId() {
	}

	/** full constructor */
	public WorkerInRepairId(Integer repairWorkId, Integer workerId,
			String isResponsible) {
		this.repairWorkId = repairWorkId;
		this.workerId = workerId;
		this.isResponsible = isResponsible;
	}

	// Property accessors

	public Integer getRepairWorkId() {
		return this.repairWorkId;
	}

	public void setRepairWorkId(Integer repairWorkId) {
		this.repairWorkId = repairWorkId;
	}

	public Integer getWorkerId() {
		return this.workerId;
	}

	public void setWorkerId(Integer workerId) {
		this.workerId = workerId;
	}

	public String getIsResponsible() {
		return this.isResponsible;
	}

	public void setIsResponsible(String isResponsible) {
		this.isResponsible = isResponsible;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WorkerInRepairId))
			return false;
		WorkerInRepairId castOther = (WorkerInRepairId) other;

		return ((this.getRepairWorkId() == castOther.getRepairWorkId()) || (this
				.getRepairWorkId() != null
				&& castOther.getRepairWorkId() != null && this
				.getRepairWorkId().equals(castOther.getRepairWorkId())))
				&& ((this.getWorkerId() == castOther.getWorkerId()) || (this
						.getWorkerId() != null
						&& castOther.getWorkerId() != null && this
						.getWorkerId().equals(castOther.getWorkerId())))
				&& ((this.getIsResponsible() == castOther.getIsResponsible()) || (this
						.getIsResponsible() != null
						&& castOther.getIsResponsible() != null && this
						.getIsResponsible()
						.equals(castOther.getIsResponsible())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getRepairWorkId() == null ? 0 : this.getRepairWorkId()
						.hashCode());
		result = 37 * result
				+ (getWorkerId() == null ? 0 : this.getWorkerId().hashCode());
		result = 37
				* result
				+ (getIsResponsible() == null ? 0 : this.getIsResponsible()
						.hashCode());
		return result;
	}

}